package com.main.modulemysql.web;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.main.modulemysql.entity.Equipment;
import com.main.modulemysql.service.IEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author IceZhang
 * @since 2018-08-07
 */
@Controller
@RequestMapping("/equipment")
public class EquipmentController {

    @Autowired
    IEquipmentService iEquipmentService;

    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        EntityWrapper<Equipment>entityWrapper=new EntityWrapper<Equipment>();
        Integer zmss = iEquipmentService.getEquipmentCountByFacilityCode("ZMSS");
        return zmss+"";
    }

}

